import request from "@/utils/request"
import {qsStringify} from "@/utils/common"

// 查询设备数据开关状态的Api
export const selectDevDataSwitchApi = (data: {devId: string | number | null | undefined}) => {
	let dataQ = "?" + qsStringify(data)
	return request.get("/devSwitch/select" + dataQ)
}

// 设置设备数据开关状态的Api
export const setUpLoadSwitchApi = (data: {
	devId: string | number | null | undefined
	isOpen: string | number | null | undefined
}) => {
	let dataQ = "?" + qsStringify(data)
	return request.post("/user/devSwitch/uSetUpLoadSwitch" + dataQ)
}
